import { RouteRecordRaw } from "vue-router";

interface RouteMeta {
    name?: string;
    inWhite?: boolean;
    icon?: string;
  }
  interface RouteRecord extends Omit<Omit<RouteRecordRaw, 'meta'>, 'children'> {
    children?: RouteRecord[];
    meta?: RouteMeta;
  } //app需要的路由信息类型
  interface AsyncRoute extends Omit<Omit<RouteRecord, 'children'>, 'component'> {
    component: string;
    children?: AsyncRoute[];
  } // 异步路由的component是string类型
  
  export type AppRouteRecord = RouteRecord; //导出类型
  export type AppAsyncRecord = AsyncRoute; //导出类型
  
  
  